import 'package:flutter/material.dart';
import 'package:flutter_applearnprogrom/video/widget/DiscoverBanner.dart';

/***
 * 首页
 */
class Discovery extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
          icon: Icon(Icons.phone),
          onPressed: () {},
        ),
        title: Text("发现"),
//        设置剧中
        centerTitle: true,
        // 仿制  ios  回弹效果
      ),
      body: CustomScrollView(
        physics: BouncingScrollPhysics(),
        slivers: <Widget>[
//          DiscoverBanner()
        ],
      ),
    );
  }
}
